package com.fujin.gulimall.gulimall.auth.feign;

import com.fujin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @title: ThirdPartyFeign
 * @Author uIn
 * @Date: 2022/2/25 15:12
 * @Version 1.0
 */
@FeignClient("gulimall-third-party")
public interface ThirdPartyFeign {

    /**
     * 短信发送
     * @param phone
     * @param code
     * @return
     */
    @PostMapping("/sms/sendCode")
    public R sendCode(@RequestParam("phone") String phone, @RequestParam("code")String code);
}
